﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008AD RID: 2221
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GroupRefreshInfo : IMessage<GroupRefreshInfo>, IMessage, IEquatable<GroupRefreshInfo>, IDeepCloneable<GroupRefreshInfo>, IBufferMessage
	{
		// Token: 0x17001BF1 RID: 7153
		// (get) Token: 0x06006342 RID: 25410 RVA: 0x00107663 File Offset: 0x00105863
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GroupRefreshInfo> Parser
		{
			get
			{
				return GroupRefreshInfo._parser;
			}
		}

		// Token: 0x17001BF2 RID: 7154
		// (get) Token: 0x06006343 RID: 25411 RVA: 0x0010766A File Offset: 0x0010586A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GroupRefreshInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001BF3 RID: 7155
		// (get) Token: 0x06006344 RID: 25412 RVA: 0x0010767C File Offset: 0x0010587C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GroupRefreshInfo.Descriptor;
			}
		}

		// Token: 0x06006345 RID: 25413 RVA: 0x00107683 File Offset: 0x00105883
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GroupRefreshInfo()
		{
		}

		// Token: 0x06006346 RID: 25414 RVA: 0x001076A4 File Offset: 0x001058A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GroupRefreshInfo(GroupRefreshInfo other) : this()
		{
			this.fLDODIAFPJA_ = other.fLDODIAFPJA_.Clone();
			this.refreshType_ = other.refreshType_;
			this.state_ = other.state_;
			this.refreshEntity_ = other.refreshEntity_.Clone();
			this.groupId_ = other.groupId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006347 RID: 25415 RVA: 0x0010770E File Offset: 0x0010590E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GroupRefreshInfo Clone()
		{
			return new GroupRefreshInfo(this);
		}

		// Token: 0x17001BF4 RID: 7156
		// (get) Token: 0x06006348 RID: 25416 RVA: 0x00107716 File Offset: 0x00105916
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BLAOHAIBJHL> FLDODIAFPJA
		{
			get
			{
				return this.fLDODIAFPJA_;
			}
		}

		// Token: 0x17001BF5 RID: 7157
		// (get) Token: 0x06006349 RID: 25417 RVA: 0x0010771E File Offset: 0x0010591E
		// (set) Token: 0x0600634A RID: 25418 RVA: 0x00107726 File Offset: 0x00105926
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneGroupRefreshType RefreshType
		{
			get
			{
				return this.refreshType_;
			}
			set
			{
				this.refreshType_ = value;
			}
		}

		// Token: 0x17001BF6 RID: 7158
		// (get) Token: 0x0600634B RID: 25419 RVA: 0x0010772F File Offset: 0x0010592F
		// (set) Token: 0x0600634C RID: 25420 RVA: 0x00107737 File Offset: 0x00105937
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint State
		{
			get
			{
				return this.state_;
			}
			set
			{
				this.state_ = value;
			}
		}

		// Token: 0x17001BF7 RID: 7159
		// (get) Token: 0x0600634D RID: 25421 RVA: 0x00107740 File Offset: 0x00105940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<SceneEntityRefreshInfo> RefreshEntity
		{
			get
			{
				return this.refreshEntity_;
			}
		}

		// Token: 0x17001BF8 RID: 7160
		// (get) Token: 0x0600634E RID: 25422 RVA: 0x00107748 File Offset: 0x00105948
		// (set) Token: 0x0600634F RID: 25423 RVA: 0x00107750 File Offset: 0x00105950
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x06006350 RID: 25424 RVA: 0x00107759 File Offset: 0x00105959
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GroupRefreshInfo);
		}

		// Token: 0x06006351 RID: 25425 RVA: 0x00107768 File Offset: 0x00105968
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GroupRefreshInfo other)
		{
			return other != null && (other == this || (this.fLDODIAFPJA_.Equals(other.fLDODIAFPJA_) && this.RefreshType == other.RefreshType && this.State == other.State && this.refreshEntity_.Equals(other.refreshEntity_) && this.GroupId == other.GroupId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006352 RID: 25426 RVA: 0x001077EC File Offset: 0x001059EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.fLDODIAFPJA_.GetHashCode();
			if (this.RefreshType != SceneGroupRefreshType.None)
			{
				num ^= this.RefreshType.GetHashCode();
			}
			if (this.State != 0U)
			{
				num ^= this.State.GetHashCode();
			}
			num ^= this.refreshEntity_.GetHashCode();
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006353 RID: 25427 RVA: 0x0010787F File Offset: 0x00105A7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006354 RID: 25428 RVA: 0x00107887 File Offset: 0x00105A87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006355 RID: 25429 RVA: 0x00107890 File Offset: 0x00105A90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.State != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.State);
			}
			this.fLDODIAFPJA_.WriteTo(ref output, GroupRefreshInfo._repeated_fLDODIAFPJA_codec);
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.GroupId);
			}
			if (this.RefreshType != SceneGroupRefreshType.None)
			{
				output.WriteRawTag(96);
				output.WriteEnum((int)this.RefreshType);
			}
			this.refreshEntity_.WriteTo(ref output, GroupRefreshInfo._repeated_refreshEntity_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006356 RID: 25430 RVA: 0x00107928 File Offset: 0x00105B28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.fLDODIAFPJA_.CalculateSize(GroupRefreshInfo._repeated_fLDODIAFPJA_codec);
			if (this.RefreshType != SceneGroupRefreshType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.RefreshType);
			}
			if (this.State != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.State);
			}
			num += this.refreshEntity_.CalculateSize(GroupRefreshInfo._repeated_refreshEntity_codec);
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006357 RID: 25431 RVA: 0x001079BC File Offset: 0x00105BBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GroupRefreshInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.fLDODIAFPJA_.Add(other.fLDODIAFPJA_);
			if (other.RefreshType != SceneGroupRefreshType.None)
			{
				this.RefreshType = other.RefreshType;
			}
			if (other.State != 0U)
			{
				this.State = other.State;
			}
			this.refreshEntity_.Add(other.refreshEntity_);
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006358 RID: 25432 RVA: 0x00107A42 File Offset: 0x00105C42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006359 RID: 25433 RVA: 0x00107A4C File Offset: 0x00105C4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 74U)
				{
					if (num == 24U)
					{
						this.State = input.ReadUInt32();
						continue;
					}
					if (num == 74U)
					{
						this.fLDODIAFPJA_.AddEntriesFrom(ref input, GroupRefreshInfo._repeated_fLDODIAFPJA_codec);
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.RefreshType = (SceneGroupRefreshType)input.ReadEnum();
						continue;
					}
					if (num == 122U)
					{
						this.refreshEntity_.AddEntriesFrom(ref input, GroupRefreshInfo._repeated_refreshEntity_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040025EA RID: 9706
		private static readonly MessageParser<GroupRefreshInfo> _parser = new MessageParser<GroupRefreshInfo>(() => new GroupRefreshInfo());

		// Token: 0x040025EB RID: 9707
		private UnknownFieldSet _unknownFields;

		// Token: 0x040025EC RID: 9708
		public const int FLDODIAFPJAFieldNumber = 9;

		// Token: 0x040025ED RID: 9709
		private static readonly FieldCodec<BLAOHAIBJHL> _repeated_fLDODIAFPJA_codec = FieldCodec.ForMessage<BLAOHAIBJHL>(74U, BLAOHAIBJHL.Parser);

		// Token: 0x040025EE RID: 9710
		private readonly RepeatedField<BLAOHAIBJHL> fLDODIAFPJA_ = new RepeatedField<BLAOHAIBJHL>();

		// Token: 0x040025EF RID: 9711
		public const int RefreshTypeFieldNumber = 12;

		// Token: 0x040025F0 RID: 9712
		private SceneGroupRefreshType refreshType_;

		// Token: 0x040025F1 RID: 9713
		public const int StateFieldNumber = 3;

		// Token: 0x040025F2 RID: 9714
		private uint state_;

		// Token: 0x040025F3 RID: 9715
		public const int RefreshEntityFieldNumber = 15;

		// Token: 0x040025F4 RID: 9716
		private static readonly FieldCodec<SceneEntityRefreshInfo> _repeated_refreshEntity_codec = FieldCodec.ForMessage<SceneEntityRefreshInfo>(122U, SceneEntityRefreshInfo.Parser);

		// Token: 0x040025F5 RID: 9717
		private readonly RepeatedField<SceneEntityRefreshInfo> refreshEntity_ = new RepeatedField<SceneEntityRefreshInfo>();

		// Token: 0x040025F6 RID: 9718
		public const int GroupIdFieldNumber = 10;

		// Token: 0x040025F7 RID: 9719
		private uint groupId_;
	}
}
